﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.Unit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.RootInterface.Plugin
{
    public class BillExpandJsCodeItem:BillUiFormatNode
    {
        private string key = "Js_";
        private string caption = BeanUtil.FIELD_CAPTION_VALUE;
        private string languageTexts = "";
        private string pluginType = "editForm";
        private string bind = "";
        private string content = "";
        private string icon = "";


        [Xml("caption")]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }
        [Xml("key")]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        
        [Xml("languageTexts")]
        public string LanguageTexts
        {
            get
            {
                return languageTexts;
            }

            set
            {
                languageTexts = value;
            }
        }
        [Xml("pluginType")]
        public string PluginType
        {
            get
            {
                return pluginType;
            }

            set
            {
                pluginType = value;
            }
        }
        [XmlElement("bind")]
        public string Bind
        {
            get
            {
                return bind;
            }

            set
            {
                bind = value;
            }
        }
        [XmlElement("content")]
        public string Content
        {
            get
            {
                return content;
            }

            set
            {
                content = value;
            }
        }
        [XmlElement("icon")]
        public string Icon
        {
            get
            {
                return icon;
            }

            set
            {
                icon = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {

            }
        }

        public object Clone()
        {
            BillExpandJsCodeItem clone = new BillExpandJsCodeItem();
            clone.Key = key;
            clone.Caption = caption;
            clone.PluginType=pluginType;
            clone.Content=content;
            clone.Bind=bind;
            clone.Icon=icon;
            return clone;
        }
    }
}
